/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class ClasificacionCriteria extends AbstractORMCriteria {
	public final IntegerExpression id;
	public final StringExpression nombre;
	
	public ClasificacionCriteria(Criteria criteria) {
		super(criteria);
		id = new IntegerExpression("id", this);
		nombre = new StringExpression("nombre", this);
	}
	
	public ClasificacionCriteria(PersistentSession session) {
		this(session.createCriteria(Clasificacion.class));
	}
	
	public ClasificacionCriteria() throws PersistentException {
		this(orm.CinePersistentManager.instance().getSession());
	}
	
	public PeliculaCriteria createPeliculaCriteria() {
		return new PeliculaCriteria(createCriteria("ORM_Pelicula"));
	}
	
	public Clasificacion uniqueClasificacion() {
		return (Clasificacion) super.uniqueResult();
	}
	
	public Clasificacion[] listClasificacion() {
		java.util.List list = super.list();
		return (Clasificacion[]) list.toArray(new Clasificacion[list.size()]);
	}
}

